*{
    margin: 0;
    padding: 0;
}
li{
    list-style: none;
}
a{
    text-decoration: none;
}
i{
    font-style: normal;
}
@maxWidth:1200px;
@viewWidth:750px;   
header{
    nav{
        #container{
            @height: 55px;
            width: 100%;
            height: @height;
            background: #3D4450;
            position: relative;
            @media all and (max-width:1000px) and (min-width:@viewWidth){
                height: 90px;
            }
            .nav_box{
                max-width: @maxWidth;
                height: @height;
                margin: 0 auto;
                position: relative;
                p:nth-child(1){
                    width: 150px;
                    height: @height;
                    float: left;
                    border: none;
                    margin-top: 3px;
                    background: url(../images/1.png) no-repeat;
                    @media all and (max-width:1000px) and (min-width:@viewWidth){
                        float: none;
                        margin: 0 auto;
                        margin-top: 0;
                    }
                }
                ul:nth-child(2){
                    float: left;
                    margin-bottom: 0;
                    @media all and (max-width:1000px) and (min-width:@viewWidth){
                        max-width: 850px;
                        float: none;
                        margin: 0 auto;
                        margin-top: -5px;
                    }
                    @media all and (max-width:@viewWidth) {
                        display: none;
                    }
                    li{
                        float: left;
                        height: @height;
                        line-height:@height ;
                        margin-left: 10px;
                        @media all and (max-width:1000px) and (min-width:@viewWidth){
                            height: 40px;
                            line-height: 40px;
                        }
                        i{
                            font-size: 16px;
                            color: white;
                            margin-right: 5px;
                            padding-left: 5px;
                        }
                        a{
                            color: white;
                            font-size: 16px;
                            font-weight: 700;
                            padding-right: 5px;
                        }
                    }
                    li:nth-child(1){
                        background: #D9534F;
                    }
                }
                .hidess{
                    width: 100%;
                    position: absolute;
                    top:@height;
                    left: 0px;
                    display: none;
                    margin-bottom: 0;
                    li{
                        width: 100%;
                        height: 40px;
                        background: #3D4450;
                        line-height: 40px;
                        i{
                            font-size: 16px;
                            color: white;
                            margin-right: 5px;
                            padding-left: 5px;
                        }
                        a{
                            color: white;
                            font-size: 16px;
                            font-weight: 700;
                            padding-right: 10px;
                        }
                    }
                    li:nth-child(1){
                        background: #D9534F;
                    }
                }
                p:nth-last-child(1){
                    float: right;
                    margin-right: 20px;
                    margin-top: 10px;
                    display: none;
                    cursor: pointer;
                    @media all and (max-width:@viewWidth) {
                        display: block;
                    }
                    i{
                        font-size: 30px;
                        color: white;
                    }
                }
            }
        }
    }
}

main{
    .content_box{
        height: auto;
        max-width: 1132px;
        margin: 0 auto;
        margin-top: 20px;
        @media all and (max-width:1200px){
            width: 960px;
        }
        @media all and (max-width:1000px){
            width: 720px;
        }
        @media all and (max-width:750px){
            width: 90%;
        }
        #left{
            float: left;
            box-sizing: border-box;
            margin-bottom: 20px;
            @media all and (max-width:1200px){
                width: 650px;
            }
            @media all and (max-width:1000px){
                width: 720px;
            }
            @media all and (max-width:750px) {
                width: 100%;
            }
            article{
                .explain{
                    height: 75px;
                    padding: 20px;
                    box-sizing: border-box;
                    margin: 0 auto;
                    padding-bottom: 10px;
                    overflow: hidden;
                    margin-bottom: 30px;
                    border-radius: 4px;
                    border: 1px solid #ddd;
                    @media all and (min-width:1200px){
                        max-width: 750px;
                    }
                    @media all and (min-width:1000px) and (max-width:1200px){
                        width: 650px;
                    }
                    @media all and (max-width:1000px) {
                        width: 100%;
                        height: auto;
                    }   
                    p{
                        display: block;
                        width: 95%;
                        font-size: 12px;
                        float: left;
                    }
                    span{
                       display: block; 
                       float: right;
                       cursor: pointer;
                    }
                }
                div:nth-child(2){
                    @media all and (min-width:1200px){
                        max-width: 750px;
                    }
                    @media all and (min-width:1000px) and (max-width:1200px){
                        width: 650px;
                    }
                    @media all and (max-width:1000px) {
                        width: 100%;
                        height: auto;
                    }
                    div{
                        width:100%;
                        position: relative;
                        display: block;
                       a{
                            width: 100%;
                            img{
                                width: 100%;
                                display: block;
//                              position: absolute;
//                              top: 0;
//                              left: 0;
                            }
                        } 
                    }
                    
                }
                section{
                    .content_read{
                        margin-top: 30px;
                        border-radius: 5px;
                        position: relative;
                        padding: 20px 10px;
                        box-sizing: border-box;
                        border: 1px solid #ddd;
                        @media all and (min-width:1200px){
                            max-width: 750px;
                        }
                        @media all and (min-width:1000px) and (max-width:1200px){
                            width: 650px;
                        }
                        @media all and (max-width:1000px) {
                            width: 100%;
                            height: auto;
                        }
                        p:nth-child(1){
                            display: block;
                            width: 70px;
                            height: 70px;
                            border-radius: 50%;
                            position: absolute;
                            top: -20px;
                            left: -20px;
                            background: #D9534F;
                            padding-top: 10px;
                            box-sizing: border-box;
                            overflow: hidden;
                            z-index: 10;
                            @media all and (max-width:750px) {
                               display: none; 
                            }
                            i:nth-of-type(1){
                                color: white;
                                font-size: 12px;
                                margin-left: 25px;
                            }
                            i:nth-of-type(2){
                                color: white;
                                font-size: 34px;
                                font-weight: 700;
                                position: absolute;
                                top: 25px;
                                left: 15px;
                            }
                        }
                        
                        i:nth-child(2){
                            font-size: 34px;
                            color: #D9534F;
                            position: absolute;
                            top: -10px;
                            right: 40px;
                            z-index: 10;
                            @media all and (max-width:750px) {
                                display: none;
                            }
                        }
                        div:nth-child(3){
                            width: 100%;
                            padding: 0px 10px;
                            box-sizing: border-box;
                            h1{
                                text-align: center;
                                font-size: 32px;
                                font-weight: 100;
                                cursor: pointer;
                                @media all and (max-width:750px) {
                                    text-align: left;
                                    font-size: 18px;
                                    font-weight: 0px;
                                    color: #CC514C;
                                }
                            }
                        }
                        div:nth-child(4){
                            width: 100%;
                            padding: 10px;
                            display: flex;
                            justify-content: center;
                            @media all and (max-width:750px){
                                justify-content: flex-start;
                                margin-top: -20px;
                            }
                            span{
                                display: inline-block;
                                background: #3d4450;
                                margin-right: 5px;
                                color: white;
                                border-radius: 5px;
                                padding: 5px 5px;
                                @media all and (max-width:750px){
                                    display: none;
                                }
                                i{
                                    margin-right: 4px;
                                }
                            }
                            li{
                                font-size: 12px;
                                color: #333;
                                padding: 5px 5px;
                                display: none;
                                @media all and (max-width:750px){
                                    display: inline-block;
                                }
                                i{
                                   margin-right: 4px; 
                                }
                            }
                        }
                        div:nth-child(5){
                            width: 100%;
                            .link_img{
                                width: 100%;
                                display: block;
                                img{
                                    display: block;
                                    width: 100%;
                                }
                                .mid_img:hover{
                                    opacity: 0.8;
                                }
                            }
                        }
                        p:nth-of-type(2){
                            width: 100%;
                            display: block;
                            overflow: hidden;
                            white-space: 3;
                            text-overflow: ellipsis;
                            box-sizing: border-box;
                            padding: 15px;
                            font-size: 12px;
                            background: #EEEEEE;
                        }
                        div:nth-child(7){
                            width: 100%;
                            overflow: hidden;
                            .read{
                                display: block;
                                width: 108px;
                                height: 30px;
                                color: white;
                                background: #D9534F;
                                font-size: 14px;
                                text-align: center;
                                line-height: 30px;
                                border-radius: 8px;
                                float: right;
                                @media all and (max-width:750px) {
                                    width: 100%;
                                }
                            }
                            .read:hover{
                                text-decoration: none;
                            }
                        }
                        
                    }
                }
                .page{
                    width: 100%;
                    overflow: hidden;
                    margin-top: 30px;
                    div{
                        box-sizing: border-box;
                        width: 30px;
                        height: 30px;
                        line-height: 30px;
                        color: #D9534F;
                        font-size: 12px;
                        font-weight: 500;
                        border: 2px solid #D9534F;
                        float: right;
                        text-align: center;
                        line-height: 28px;
                        margin-right: 10px;
                        border-radius: 5px;
                        cursor:pointer;
                    }
                    div:nth-last-child(1){
                        color: white;
                        background: #D9534F;
                    }
                    div:first-child{
                        margin-right: 0px;
                    }
                    div:hover{
                        color: white;
                        background: #D9534F;
                    }
                }
            }
        }
        #right{
           width: 360px;
           margin-left: 20px;
           float: left;
           box-sizing: border-box;
           @media all and (max-width:1200px){
                width: 290px;
                margin-left: 20px;
            }
           @media all and (max-width:1000px){
                width: 100%;
                margin: 0;
            }
           aside{
               .aside_top{
                   width: 100%;
                   border: 1px solid #ccc;
                   @media all and (max-width:1000px){
                        width: 720px;
                        margin: 0 auto;
                    }
                    @media all and (max-width:750px){
                        width: 100%;
                    }
                   p:nth-child(1){
                       height: 30px;
                       line-height: 30px;
                       color: white;
                       font-size: 14px;
                       font-weight: 700;
                       padding-left: 10px;
                       background: #3D4450;
                       border-top-left-radius: 5px;
                       border-top-right-radius: 5px;
                    }
                    .mid{
                        box-sizing: border-box;
                        padding:15px 15px;
                        .user{
                            width: 100%;
                            height: 30px;
                            margin-bottom: 20px;
                            display: table;
                            overflow: hidden;
                            box-sizing: border-box;
                            div:nth-of-type(2){
                                display: table-cell;
                                width: 100%;
                                input{
                                    display: table-cell;
                                    height: 32px;
                                    box-sizing: border-box;
                                    width:100%;
                                    text-indent: 9px;
                                }
                                input:focus{
                                  border: 1px solid red;  
                                }
                            }
                            .user_span{
                                width: 30px;
                                height: 30px;
                                color: white;
                                text-align: center;
                                line-height: 30px;
                                background: #D9534F;
                                font-size: 14px;
                            }
                            
                        }
                        
                    }
                    .sub_mit{
                        width: 100%;
                        padding:0px 15px;
                        overflow: hidden;
                        margin-bottom: 20px;
                        input[type=button]{
                            display: block;
                            height: 35px;
                            background: #3D4450;
                            color: white;
                            text-align: center;
                            line-height: 35px;
                            border: none;
                            border-radius: 5px;
                            width: 48%;
                            float: left;
                        }
                        input:nth-of-type(2){
                            float: right;
                        }
                        input[type=button]:hover{
                            background: #D9534F;
                        }
                    }
               }
               .aside_search{
                   width: 100%;
                   height: 50px;
                   margin-top: 30px;
                   background: #3D4450;
                   border-radius:5px ;
                   padding: 10px;
                   display: table;
                   @media all and (max-width:1000px){
                        width: 720px;
                    }
                    @media all and (max-width:750px){
                        width: 100%;
                    }
                    div{
                        display: table-cell;
                        width: 100%;
                       .ipt_search{
                           height: 30px;
                           width: 100%;
                           background: #FFFFFF;
                           box-sizing: border-box;
                           display: table-cell;
                           float: left;
                           border-radius: 4px;
                           text-indent: 5px;
                        } 
                    }
                   
                   span{
                        display: block;
                        float: left;
                        width: 30px;
                        height: 30px;
                        margin-left: 20px;
                        color: white;
                        font-size: 14px;
                        line-height: 30px;
                        text-align: center;
                        background: #D9534F;
                        box-sizing: border-box;
                        display: table-cell;
                        float: right;
                        border-radius: 4px;
                   }
               }
               .new_arc{
                   width: 100%;
                   margin-top: 30px;
                   border-radius: 4px;
                   overflow: hidden;
                   margin-bottom: 30px;
                   ul{
                       width: 100%;
                       border:1px solid #ddd;
                       border-bottom:none;
                       margin-bottom: 0;
                       p:nth-of-type(1){
                           height: 35px;
                           width: 100%;
                           box-sizing: border-box;
                           padding:0px 20px;
                           line-height: 35px;
                           color: white;
                           font-size: 14px;
                           background: #3D4450;
                           margin: 0;
                           border-top-left-radius: 5px;
                           border-top-right-radius: 5px;
                           i{
                               margin-right: 3px;
                           }
                       }
                       li{
                           width: 100%;
                           height: 40px;
                           line-height: 40px;
                           padding:0px 20px;
                           border-bottom: 1px solid #ddd;
                           overflow: hidden;
                           a{
                               color: #666;
                           }
                           i{
                               display: block;
                               height: 15px;
                               padding: 0px 5px;
                               background: #D9534F;
                               color: white;
                               line-height: 15px;
                               font-style: normal;
                               border-radius: 4px;
                               float: right;
                               margin-top: 12px;
                           }
                        }
                        .arc_li{
                            height: 60px;
                            padding-top: 10px;
                            .user_img{
                                float: left;
                                margin-right: 20px;
                                img{
                                    max-width: 100%;
                                    display: block;
                                    border-radius: 50%;
                                    cursor: pointer;
                                    transition: 0.5s;
                                }
                                img:hover{
                                    transform: rotate(360deg);
                                }
                            }
                            .message{
                                height: 40px;
                                width: 80%;
                                float: left;
                                background: #EEEEEE;
                                border-radius: 5px;
                                text-indent: 5px;
                                line-height: 40px;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                white-space: nowrap;
                                font-size: 12px;
                                color: #666;
                                cursor: pointer;
                            }
                            .message:hover{
                                color: #C94F4C;
                            }  
                        }
                   }
               }
           }
        }
    }
}


footer{
    #foot_box{
        width: 100%;
        display: flex;
        height: 120px;
        background: #3D4450;
        margin-top: 30px;
        justify-content: center;
        align-items: center;
        p{
           width: 80%;
           display: -webkit-box;
           -webkit-line-clamp:  2;  
           -webkit-box-orient: vertical;
           color: white;
           text-align: center;
           font-size: 12px;
        }
        
    }
}

#go_top{
    background: #3D4450;
    font-size: 18px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: white;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
}
#go_top:hover{
    border: 2px solid #D9534F;
    color: #D9534F;
}
